package com.niiwoo.civet.trade.service.local.configure;

import com.niiwoo.civet.trade.dao.entity.InvestFlowConfig;
import com.niiwoo.civet.trade.dao.mapper.InvestFlowConfigMapperExt;
import com.niiwoo.civet.trade.enums.InvestFlowConfigTypeEnum;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by zhangwanli on 2017/11/29.
 */
@Service
public class InvestFlowConfigLocalService {

    @Autowired
    private InvestFlowConfigMapperExt configMapperExt;

    public InvestFlowConfig queryByType(InvestFlowConfigTypeEnum type) {
        return configMapperExt.selectByType(type.getValue());
    }

}
